import axios from "axios"
const baseUrl = "http://localhost:5000"
// 登录接口
const getlogin = data =>axios.post(baseUrl+"/login",data)
// 获取用户
const getuser= params =>axios.get(baseUrl+"/getUserList",{params})
// 添加用户
const adduser=data =>axios.post(baseUrl+"/addUser",data)
// 修改密码
const addpassword=data =>axios.post(baseUrl+"/changePassword",data)
// 删除用户
const deluser =params =>axios.post(baseUrl+"/deleteUser",params)
// 纯分流模式
const getchun =params =>axios.get(baseUrl+"/getFlow",{params})
// 分流加计算
const getcomputer =params =>axios.get(baseUrl+"/getComputed",{params})
export {
    getlogin,
    getuser,
    adduser,
    addpassword,
    deluser,
    getchun,
    getcomputer,
}
